<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="contents">
    <h2>Project Management</h2>
    <div class="project_management">
        <div class="project_management_2">
            <a href="/JudiBlog/Page?p=create_project">Create Project</a>
        </div>
        <table>
            <tr class="title">
                <td>ID</td>
                <td class="project_name">Project Name</td>
                <td class="date">Start Date</td>
                <td class="description">Description</td>
                <td class="type">Type</td>
                <td class="curator">User Joined</td>
                <td class="add_user">Add User</td>
            </tr>
            <c:forEach items="${projectList}" var="projectList">
                <tr>
                    <td class="id">${projectList.getProjectID()}</td>
                    <td class="project_name">${projectList.getProjectName()}</td>
                    <td class="date">${projectList.getStartDate()}</td>
                    <td class="description">${projectList.getDescription()}</td>
                    <td class="type">${projectList.getType().getTypeName()}</td>
                    <td class="curator"><c:forEach items="${projectList.getUserList()}" var="userList">
                            ${userList.getUserName()},
                        </c:forEach>
                    </td>
                    <td class="add_user">
                        <a href="javascript:void(0);" onClick=window.open("/JudiBlog/postproject?id=${projectList.getProjectID()}","Ratting","width=650,height=450,toolbar=0,status=0");>add</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </div>
</div>